

/* src/components/Chat.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    
}
.chat-container {
    width: 70%;
    margin: 0 auto;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.messages-container {
    height: 1000px;
    overflow-y: auto;
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
}

.message-container {
    display: flex;
    margin-bottom: 10px;
}

.message-left {
    justify-content: flex-start;
}

.message-right {
    justify-content: flex-end;
}

.message-content {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    max-width: 60%;
    word-break: break-word;
    display: flex;
    flex-direction: row;
}

.message-left .message-content {
    background-color: #e0e0e0;
    color: black;
    text-align: left;
    flex-direction: row; /* Ensure name is on the left side */
}

.message-right .message-content {
    background-color: #0084ff;
    color: white;
    text-align: right;
    flex-direction: row-reverse; /* Reverse the order for right side messages */
}

.message-name {
    font-weight: bold;
    margin: 0 5px;
}

.message-left .message-name {
    order: 1; /* Ensure the name comes before the content */
}

.message-right .message-name {
    order: 2; /* Ensure the name comes after the content */
}

.message-form {
    display: flex;
}

.message-input {
    flex: 1;
    margin-right: 10px;
}

.send-button {
    padding: 5px 10px;
    background: #4c85c2;
}
